__author__ = 'M. Navrotskiy'


class Word:
    """
    Class of words, which user will be know.
    """


    def __init__(self, first, second, wid):
        """
        Create new word.
        first - word in main language.
        second - word in foreign language.
        wid - words id.
        """
        self.sval = second
        self.fval = first
        self.wid = wid


    def set_first_value(self, fval):
        """
        Set value of word in main language.
        """
        self.fval = fval


    def set_second_value(self, sval):
        """
        Set value of word in foreign language.
        """
        self.sval = sval


    def get_first_value(self):
        """
        Get value of word in main language.
        """
        return self.fval


    def get_second_value(self):
        """
        Get value of word in foreign value.
        """
        return self.sval


    def get_id(self):
        """
        Get word's id.
        """
        return self.wid


    def set_id(self, wid):
        """
        Set word's id.
        """
        self.wid = wid
